

var  showDiv=null;
var stopMove=false;

function move(){
	if(!showDiv)return ;
	 v=parseInt(showDiv.style.bottom);
	if(!v){
		v=0;
	}
	 move2(v);

}
function move2(v){
		if(stopMove)return ;
	  var curPos=v-3;
  	
		if(curPos<-200){
				curPos=0;
		}
	
		showDiv.style.bottom=curPos+"px";
	//	alert(curPos+"=va="+showDiv.style.top);
		setTimeout("move2("+(curPos)+")",700);
		
}



function sc5(){
 document.getElementById("Javascript.Div5").style.top=(document.documentElement.scrollTop+document.documentElement.clientHeight-document.getElementById("Javascript.Div5").offsetHeight)-420+"px";
 document.getElementById("Javascript.Div5").style.left=(document.documentElement.scrollLeft+document.documentElement.clientWidth-document.getElementById("Javascript.Div5").offsetWidth)+"px";
if(document.getElementById("Javascript.Div6")){
 document.getElementById("Javascript.Div6").style.top=(document.documentElement.scrollTop+document.documentElement.clientHeight-document.getElementById("Javascript.Div5").offsetHeight)-20+"px";
 document.getElementById("Javascript.Div6").style.left=(document.documentElement.scrollLeft+document.documentElement.clientWidth-document.getElementById("Javascript.Div5").offsetWidth)+"px";
}

}

function scall(){
 sc5();
}
function afterLoad(){
	showDiv=document.getElementById("show");
	scall();

	move();
	registerClick();
	showTip();
}
function showTip(){
	var showTip=document.getElementById("showTip");

	if(!showTip)return;
	var div;
	var showTips=showTip.getElementsByTagName("a");
	for(i=0;i<showTips.length;i++){
			var show=showTips[i];
			show.onmouseover=function(){
			//	var tip=document.getElementById("tip");
				var tips=getByClass(showTip,"tip","p");
				var index=this.getAttribute("index");
				if(index&&tips[index-1]){
					var text=tips[index-1].innerHTML;
					var	div=document.createElement("div");
					var xy=	getAbsPoint(this);
					div.innerHTML=	text;
					div.style.position="absolute";
					div.style.border="solid";
					div.style.width="400px";
					div.style.background="#ffffff";
					div.style.top=xy[1];
				   div.style.left=xy[0];
					this.appendChild(div);
					
				}
			};
			show.onmouseout=function(){
				var div=this.getElementsByTagName("div")[0];
				if(div){
					this.removeChild(div);
				}
			};
	}
}
 function getAbsPoint(obj){
        var x,y;
        oRect = obj.getBoundingClientRect();   
        x=oRect.left+document.documentElement.scrollLeft;   
        y=oRect.top+document.documentElement.scrollTop+15;
        return [x,y];    
    }

window.onscroll=scall;
window.onresize=scall;
window.onload=afterLoad;